package com.xc.hotelmgr.webapi.modules.dt.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xc.hotelmgr.webapi.modules.dt.entity.HtlEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xc.hotelmgr.webapi.modules.ht.entity.HtHotelinfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 分销商可分销的酒店
 * 
 * @author kemmy
 * @email kemmy@gmail.com
 * @date 2020-09-27 08:59:22
 */
@Mapper
public interface HtlDao extends BaseMapper<HtlEntity> {
    List<HtlEntity> sqlQueyPage(Map<String,Object> params);

    HtlEntity sqlGetById(@Param("id") Object id);

    List<HtlEntity> sqlQuery(@Param("dtId") String dtId,@Param("district") String district, @Param("brand") String brand);

    List<HtHotelinfoEntity> sqlQuryHotelInfo(Map<String,Object> params);

    List<HtHotelinfoEntity> sqlQuryhotelPage(IPage<HtHotelinfoEntity> page, String dtId, String name, String province, String city, String county);

    int sqlQueryStatus(Integer dtId,Long hotelCode);
}
